From 85ad434290bc92ecdd92eb86b997bf103b658f1d Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 20 Feb 2015 12:46:52 +0100 Subject: [PATCH] inspector: Destroy popovers on unmap As an implementation detail, the popover hooks the fade out animation on ::hide. Destroying the popover right away here is not a problem, but prevents the animation from actually running. ::unmap will be run after the animation is finished, so destroy the popover there. --- gtk/inspector/prop-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/inspector/prop-list.c b/gtk/inspector/prop-list.c index 75b3858a39..7a5aa72028 100644 --- a/gtk/inspector/prop-list.c +++ b/gtk/inspector/prop-list.c @@ -231,7 +231,7 @@ row_activated (GtkTreeView *tv, gtk_widget_show (popover); - g_signal_connect (popover, "hide", G_CALLBACK (gtk_widget_destroy), NULL); + g_signal_connect (popover, "unmap", G_CALLBACK (gtk_widget_destroy), NULL); g_free (name); } -- 2.30.2